package org.bigjava.bean;

import lombok.Data;

import java.util.List;

@Data
public class Posts {

    private long postId;  //主键唯一id
    private String postTitle; //帖子标题 notnull
    private String postValue; //帖子内容  ntonull
    private String postPhoto; //帖子上传的图片
    private long postUser;  //发帖人   notnull
    private long topicId; //所属话题  notnull
    private java.sql.Timestamp postDate;  //发帖时间  notnull
    private long postReplys;  //回复数量
    private long postState;   //帖子状态  notnull
    private long postLike;    //帖子的顶
    private long postUnlike;   //帖子的踩
    private long postHots;      //帖子热度
    private long postConllect;      //帖子被收藏数
    private User users;     //发帖人
    private Topic topics;       //所属话题
    private Types types;   //帖子所属话题的所属分类
    private List<Reply> replyList;//帖子回复
    private List<Comment> commentList;//回复的评论


}
